package com.cheng.feign.feignCallback;

import com.cheng.feign.ProviderFeign;
import org.springframework.stereotype.Component;

@Component
public class ProviderFeignHandler implements ProviderFeign {
    @Override
    public String getHello() {
        String fallback = "当前人数过多，休息一会再重试。";
        return fallback;
    }

    @Override
    public String getFallback(boolean flag) {
        String fallback = "fallback方法出现问题，请稍后再试";
        return fallback;
    }
}
